cmake_minimum_required(VERSION 3.25)
project(toralize C)

set(CMAKE_C_STANDARD 11)

#定义全局变量
#生成库的存放路径
SET(LIB_PATH ${PROJECT_SOURCE_DIR}/lib)
#定义可执行程序的存储路径
SET(EXE_PATH ${PROJECT_SOURCE_DIR}/bin)
#定义头文件路径
SET(HEAD_PATH ${PROJECT_SOURCE_DIR}/include)
#定义库名
SET(LIB_ARCFOUR arcfour)
SET(LIB_SAFESTR safestr)

# 添加子目录
add_subdirectory(arcfour)
add_subdirectory(arcfour-test)
add_subdirectory(fse)
add_subdirectory(safestr)
add_subdirectory(safestr-test)

#可执行文件生成路径
set(EXECUTABLE_OUTPUT_PATH ${EXE_PATH})
add_executable(toralize toralize.c)
